<template>
  <div class="detail">
    <div class="commend">
      <div class="title">
        <i>1</i>
        用户评论
      </div>
      <div class="w">
        <div class="top">
          <div class="xin">
            <i class="iconfont icon-xingxing" v-for="i in 5" :key="i"></i>
          </div>
          <div class="user">
            <span class="name">没空忧伤</span>
            <span class="data">2024-10-16</span>
          </div>
        </div>
        <div class="content">
          <p class="word" >
            111111111111111111111111111111111111111111111111111111111111111111111111111s111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
          </p>
          <div class="img">
            <img v-for="(item, idx) in imgs" :src="item" alt="" :key="idx" />
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'detailCommend',
  data () {
    return {
      imgs: [
        'https://img1.qunarzz.com/sight/p0/1503/55/5577ab22b2e205d0.water.jpg_600x330_2a541cbf.jpg',
        'https://img1.qunarzz.com/sight/p0/1503/55/5577ab22b2e205d0.water.jpg_600x330_2a541cbf.jpg',
        'https://img1.qunarzz.com/sight/p0/1503/55/5577ab22b2e205d0.water.jpg_600x330_2a541cbf.jpg',
        'https://img1.qunarzz.com/sight/p0/1503/55/5577ab22b2e205d0.water.jpg_600x330_2a541cbf.jpg'
      ]
    }
  }
}
</script>

<style lang="scss">
.detail {
  .commend {
    max-width: 750px;
    .title {
      line-height: 40px;
      font-size: 20px;
      color: #000;
      padding: 0 15px;
      padding: 0 15px;
      box-shadow: 0 3px 3px rgba($color: #000000, $alpha: 0.1);
      i {
        display: inline-block;
        background-color: aqua;
        width: 5px;
        line-height: 100%;
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
        margin-right: 10px;
        color: transparent;
      }
    }
    .w {
      padding: 0 15px;
      .top {
        display: flex;
        justify-content: space-between;
        line-height: 30px;
        .xin {
          .icon-xingxing {
            color: rgb(198, 198, 61);
            padding: 0 4px;
          }
        }
        .user {
          .name {
            margin-right: 10px;
          }
        }
      }
      .content {
        width: 750px;
        // text-align: center;
        .word {
          width: 720px;
          word-wrap: break-word
        }
        .img {
          width: 720px;
          display: flex;
          justify-content: space-between;
          flex-wrap: wrap;
          img {
            display: inline-block;
            width: 32%;
            height: auto;
            margin-bottom: 10px;
          }
        }
      }
    }
  }
}
</style>
